import { r } from '@evam/utils';

// 新增活动
export const add = (params) => {
  return r('post', 'news/add', { ...params });
};

// 编辑活动
export const update = (params) => {
  return r('post', 'news/edit', { ...params });
};

// 详情
export const info = (params) => {
  return r('post', 'news/detail', { ...params });
};

//栏目
export const categoryList = (params) => {
  return r('post', 'category/pagelist', { ...params, page_size: 10000 });
};

// 企业列表
export const companyList = (params) => {
  return r('post', 'company/pagelist', { pageSize: 10000 });
};
